import ch01.ts.TimeServer;
import org.apache.log4j.Logger;
import wsejbclient.WSClientUtilities;

import javax.xml.ws.Service;

public class Test {
    private static Logger log = Logger.getLogger(Test.class);
	public static void main(String args[]){
        WSClientUtilities wsClientUtilities = new WSClientUtilities();
        Service service = wsClientUtilities.getServiceUsingQNameAndURL("http://127.0.0.1:9876/ts?wsdl",
                "http://ts.ch01/", "TimeServerImplService");
        TimeServer timeServer = service.getPort(TimeServer.class);
        log.debug(timeServer.getTimeAsString());
	}

}
